package com.beifeng.hadoop.hdfs;

import java.util.StringTokenizer;

public class TestStringTokenizer {
	
	
	public static void main(String[] args) {
		String str = "zhenghui@,eric,tom,lucy,baby";
		
		StringTokenizer ts = new StringTokenizer(str,",");
			while(ts.hasMoreTokens()){
			System.out.println(ts.nextToken());
		}
		
	}

}
